package stack.era.presentation.side_screen;

import java.awt.Graphics;

import javax.swing.JPanel;

import stack.era.constants.FrameAttributes.SideScreen;
import stack.era.constants.ImageAttributes.ImageCacheName;
import stack.era.presentation.images.ImageCache;

public abstract class ERASideScreen extends JPanel {

	private static final long serialVersionUID = 336758593329276028L;
	
	public ERASideScreen(SideScreen ss) {
		super();
	}

	public abstract void populate();

	@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		g.drawImage(ImageCache.getInstance().getImage(
				ImageCacheName.DIRT_BACKGROUND), 0, 0, this.getWidth(), this
				.getHeight(), null, this);
	}

}
